package org.example.domain;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName a_goods_deposit
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GoodsDeposit implements Serializable {
    /**
     * 入库单号（雪花算法）
     */
    private String id;

    /**
     * 仓库id
     */
    private Integer warehouseId;

    /**
     * 农产品id
     */
    private String cropId;

    /**
     * 入库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime warehousingTime;

    /**
     * 入库数量
     */
    private Integer warehousingNum;


    private Integer status;


}